package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.ArticleAdjunct;
import com.caigou.bean.cms.param.ArticleAdjunctDataParam;
import com.caigou.pojo.ArticleAdjunctData;
import com.caigou.pojo.ArticleDataAdjunctListData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

//@Mapper
//@Repository("ArticleAdjunctMapper")
public interface ArticleAdjunctMapper {
    int saveArticleAdjunctData(ArticleAdjunct articleAdjunct);

    int deleteArticleAdjunct(@Param("id") Integer id);

    int updateArticleAdjunct(ArticleAdjunct articleAdjunct);

    List<ArticleDataAdjunctListData> loadArticleAdjunctDataList(@Param("articleId") String articleId);

    int loadArticleAdjunctMaxVersion(@Param("articleId") String articleId);

    int deleteArticleAdjunctByArticleId(@Param("articleId") String articleId);
}